<%--
  Created by IntelliJ IDEA.
  User: 檬zhu
  Date: 2022/6/30
  Time: 13:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.example.ordersystem.domain.Customer" %>
<html>
<head>
    <title>welcome</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/title.css">
</head>
<body>
<%
    Customer customer = (Customer) session.getAttribute("customer");
    Object obj = session.getAttribute("merchantaddress");
    if (obj == null) {
%>
<%
    }else {
        String roomAddress = obj.toString();
%>
<div class="title" style="margin-top: 20%">
    <div class="top">
        <p><%=roomAddress%>,欢迎您!<%=customer.getName()%></p>
        <span class="txt">nice to meet you!</span>
    </div>
</div>
<%
    }
%>
</body>
</html>
